package com.qms.tubu.tools;

import android.content.Context;
import android.content.res.Resources;

import com.qms.tubu.R;

/**
 * Created by Mad on 2015/7/18.
 */
public class UrlConfig {
    private Context mContent;
    private static UrlConfig urlConfig = new UrlConfig();

    public static UrlConfig getInstance() {
        return urlConfig;
    }

    public static void init(Context context)
    {
        urlConfig.mContent=context;
    }
    public static String getUrl(int resId)
    {
        Resources resources=getInstance().mContent.getResources();
        return resources.getString(R.string.app_url)+resources.getString(resId);
    }
}
